const rcu = {
  state: {
    rcuList: []
  },
  mutations: {
    SET_RCU_LIST (state, data) {
      state.rcuList = data
    }
  },
  getters: {
    rcuTunnelList: (state) => {
      let rcuList = state.rcuList
      let res = []
      for (let rcuItem of rcuList) {
        for (let tunnelItem of rcuItem.tunnels) {
          res.push(tunnelItem)
        }
      }
      return res
    }
  }
}
export default rcu
